Errors and helpers topic

Errors and helpers

AviaryException and its status codes, scoped handle release, and the hex helpers used throughout.

Extensions

AviaryScopes on Aviary
Handles released at the end of a scope, whatever body does.
HexBytes on Uint8List
Hex rendering and comparison for byte strings such as addresses, hashes and transaction ids. Not constant time; do not compare secrets with it.
HexString on String
Decoding of hex and text into bytes.

Enums

AviaryStatus
The stable status codes of the C ABI. Values never change.

Exceptions / Errors

AviaryException
Raised when a native call reports an error.